<template>
    <div>
        <mavon-editor v-model="value" @save="save" id="editor" />
    </div>
</template>
<script>
// import fs from 'fs'

const { process } = require('electron').remote

export default {
  data () {
    return {
      value: '# hello'
    }
  },
  methods: {
    save (value, render) {
      console.log(value)
      console.log(render)
      alert(process.resourcesPath)
      // dialog.showOpenDialog()
    }
  }
}
</script>

<style>
#editor {
  height: 100%;
}
</style>
